<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <link rel="stylesheet" href="css/button.css">
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <script src="js/myJs.js"></script>
    <script>
        //验证提交表单
        function validatePost() {
            if (validateFiled($("facultyName"), "学院名称") == true) {
                $("addFacultyFrom").submit();
            }
        }
    </script>
</head>
<body id="allForm">
${message}
<form action="FacultyServlet?action=addFaculty" id="addFacultyFrom" method="post">
    <h3>添加学院</h3>
    <label for="facultyName"><span>学院名称</span><input id="facultyName" name="facultyName" type="text"/></label>
    <div id="button">
        <input id="addButton" name="addButton" type="button" class="add-but" value="添加学院"
               onclick="validatePost()">
    </div>
</form>
</body>
</html>